import Request from '@/libs/request'

/**获取字典数据 */
export const selectDictItemByCode = <
  T = string,
  I = string
>(data: {
  typeCode?: string
}) =>
  Request.get<Dict.Item<T, I>[]>(
    '/type/selectDictItemByCode',
    data
  )
